/**
 * ==================== 自定义函数库 ====================
 */


//  判断变量是否为空
export const isEmpty = (val) => {
	if (typeof(val) == 'string') {
		val = val.replace(/(^\s*)|(\s*$)/g, "");
	}
	val = (val == null || val == undefined) ? "" : val.toString();
	return ("" == val || 'undefined' == val || 'null' == val);
};